import { request } from "@/utils/service"
// 后台场地管理
export function getSiteCustomDepartmentList(data: any) {
  return request({
    url: "/bg/site/getList",
    method: "post",
    data
  })
}
//保存或修改
export function saveOrUpdateSiteCustomDepartment(data: any) {
  return request({
    url: "/bg/site/saveOrUpdate",
    method: "post",
    data
  })
}

//根据id删除
export function deleteSiteCustomDepartmentById(data: any) {
    return request({
      url: "/bg/site/deleteById",
      method: "post",
      data
    })
}

//详情
export function getSiteCustomDepartmentById(data: any) {
    return request({
      url: "/bg/site/getById",
      method: "post",
      data
    })
}


export function getRecordUrl(data: any) {
  return request({
    url: "/bg/site/getRecordUrl",
    method: "post",
    data
  })
}


// 后台场地每日工作管理

export function getSiteWorkCustomDepartmentList(data: any) {
    return request({
      url: "/bg/siteWork/getList",
      method: "post",
      data
    })
  }
  //保存或修改
  export function saveOrUpdateSiteWorkCustomDepartment(data: any) {
    return request({
      url: "/bg/siteWork/saveOrUpdate",
      method: "post",
      data
    })
  }
  
  //根据id删除
  export function deleteSiteWorkCustomDepartmentById(data: any) {
      return request({
        url: "/bg/siteWork/deleteById",
        method: "post",
        data
      })
  }
  
  //详情
  export function getSiteWorkCustomDepartmentById(data: any) {
      return request({
        url: "/bg/siteWork/getById",
        method: "post",
        data
      })
  }
